package com.qianbao.controller.v1.shop;

import com.qianbao.components.excepion.CommonException;
import com.qianbao.components.svresut.Result;
import com.qianbao.components.svversion.ApiVersion;
import com.qianbao.service.shop.ShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@ApiVersion(1)
@RequestMapping("/shopcenter/{version}/")
public class ShopController {

    @Autowired
    ShopService service;


    @RequestMapping("/tbk-material-book")
    @ResponseBody
    public Result tbkDgOptimusMaterial(){
        try {
            Object object = service.tbkDgOptimusMaterial();
            return Result.success(object);
        } catch (CommonException e) {
            e.printStackTrace();
            return Result.fail(e.getCode(),e.getMessage());
        }
    }









}
